<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@include file="header.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Add news Type</title>
<style>
 .td1 { background-color:#E4EDF9; }
 .td2 { background-color:#F1F3F5; } 
</style>
</head>
<body>
<script>
	function checkAndSubmit(){
		var form = document.getElementById("updateNewsTypeForm");
		form.submit();
	}
</script>
<form method="post" action="updateNewsType.action" id="updateNewsTypeForm">

<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
	<tr>
		<td class="td1">类型名称:</td>
		<td class="td1"><input type="text" name="typeName" id="typeName" value="<s:property value='newsTypeBean.typeName'/>" />
		</td>
	</tr>
	<tr>
		<td class="td2">描述:</td>
		<td class="td2"><input type="text" name="description" id="description" value="<s:property value='newsTypeBean.description'/>" /></td>
	</tr>
 
	<tr>

		<td colspan="2" class="td1">
		<input type="button" value="Save"  onclick="checkAndSubmit()"/>&nbsp;
		<input type="hidden" id="newsTypeId" name="newsTypeId"  value="<s:property value='newsTypeBean.newsTypeId'/>" />
		<input type="button" value="reset" />&nbsp;
		<input	type="button" value="返回"  onclick="javascript:window.history.back();" />
		</td>
</table>
</form>
</body>
</html>
